package top.oylan.mp.entity;

import lombok.Data;
import top.oylan.mp.utils.DateUtils;

import java.util.Date;

@Data
public class User {
    protected Integer id;

    protected String name;

    protected String username;

    protected Byte type;

    protected String password;

    protected String phone;

    protected String avatar;

    protected Date createTime;

    protected Byte gender;

    protected Byte status;

    protected String unionid;

    protected String createTimeStr;

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
        this.createTimeStr = DateUtils.toStrTime(createTime);
    }
}